package com.qf.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 公用常量
 * @Data: 2022/9/8 19:24
 * @Pacakge: com.qf.pojo
 * @ClassName: User
 * @Author: fan
 */
public class User {
    private Integer id;
    private String name;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date Birthday;
    private String password;

    public User() {
    }

    public User(Integer id, String name, Date birthday, String password) {
        this.id = id;
        this.name = name;
        Birthday = birthday;
        this.password = password;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBirthday() {
        return Birthday;
    }

    public void setBirthday(Date birthday) {
        Birthday = birthday;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", Birthday=" + Birthday +
                ", password='" + password + '\'' +
                '}';
    }
}
